module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;
   
    const Top250Schema = new Schema({
      pic: { type: String  },
      title: { type: String  },
      slogo: { type: String  },
      evaluate: { type: String  },
      labels: { type: Array  },
      rating: { type: String  },
      collected: { type: Boolean  }
    },{
      useNewUrlParser: true,
  useUnifiedTopology: true 
    });
   
    return mongoose.model('Top250', Top250Schema,'top250');
  }